package com.sangeng.ss.domain;

/**
 * @Author thy
 * @Create 2024/2/22 13:46
 * @Describe todo
 */

import com.sangeng.ss.config.RedisCache;
import com.sangeng.ss.service.Animal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @description：TODO
 * @author     ：xxx
 * @date       ：2024/02/22 13:46
 */
@Component
public class Dog extends Animal {
    @Autowired
    private RedisCache redisCache;

    @Override
    public String eat() {
        redisCache.setCacheObject("time" ,new Date());

        return "狗吃骨头渣";
    }
}
